home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Draw / Include / DrwPrmse.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.1 KB  |  78 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                DrwPrmse.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DRWPRMSE_H
  11. #define DRWPRMSE_H
  12.  
  13. #ifndef FWPRMISE_H
  14. #include "FWPrmise.h"
  15. #endif
  16.  
  17. // ----- OS Layer -----
  18.  
  19. #ifndef FWRECT_H
  20. #include "FWRect.h"
  21. #endif
  22.  
  23. //========================================================================================
  24. //    Forward Declarations
  25. //========================================================================================
  26.  
  27. #if FW_LIB_EXPORT_PRAGMAS
  28. #pragma import on
  29. #endif
  30. class FW_CLASS_ATTR FW_CPrivOrderedCollection;
  31. #if FW_LIB_EXPORT_PRAGMAS
  32. #pragma import off
  33. #endif
  34.  
  35. class FW_CLASS_ATTR CDrawPart;
  36. class FW_CLASS_ATTR CDrawSelection;
  37.  
  38. //========================================================================================
  39. //    class CDrawPromise
  40. //========================================================================================
  41.  
  42. class CDrawPromise : public FW_CPromise
  43. {
  44. //----------------------------------------------------------------------------------------
  45. //    Constructor/Destructor
  46. //
  47. public:
  48.     CDrawPromise(Environment*ev, 
  49.                 ODUpdateID updateID,
  50.                 FW_EStorageKinds storageKind, 
  51.                 CDrawPart* part, 
  52.                 FW_CFrame* scopeFrame, 
  53.                 CDrawSelection* selection);
  54.     virtual ~CDrawPromise();
  55.  
  56. //----------------------------------------------------------------------------------------
  57. //    Inherited API
  58. //
  59. public:
  60.     virtual void     FulfillPromise(Environment *ev, 
  61.                                     ODStorageUnitView *promiseSUView, 
  62.                                     ODPropertyName propertyName,
  63.                                     ODValueType valueType, 
  64.                                     FW_CCloneInfo* cloneInfo);
  65.     
  66.     virtual void    PromisePropertiesAndValues(Environment *ev, 
  67.                                     ODStorageUnit* storageUnit);
  68.                                     
  69. //----------------------------------------------------------------------------------------
  70. //    Data Members
  71. //
  72. private:
  73.     FW_CRect            fSelectionRect;
  74.     FW_CPrivOrderedCollection*    fCollection;
  75.     CDrawSelection*        fDrawSelection;
  76. };
  77.  
  78. #endif